#include <iostream>
#include <vector>

using namespace std;

int main()
{
	vector<int> dynArray (3);
	
	dynArray[0] = 365;
	dynArray[1] = -421;
	dynArray[2] = 789;
	
	cout <<  "Number of integers in array: " << dynArray.size() << endl;
	
	cout << "Enter another element to insert:" << endl;
	
	int newValue = 0;
	cin >> newValue;
	dynArray.push_back(newValue);
	
	cout << "Number of integers in array: " << dynArray.size() << endl;
	cout <<  "Last number in array: ";
	cout << dynArray[dynArray.size() - 1] << endl;
	
	return 0;
}